let vm = new Vue({
    el: '.main-content',
    data: {
        demandInfo: {}
    },
    methods: {
        findById:function (id) {
            axios.get('/guguanjia/demand/get?id='+id).then(function (resp) {
                vm.$data.demandInfo = resp.data;
            });
        },

    }
});
function child(data,index) {
    vm.findById(data);
}